package com.horatio.scenario.basic;


/**
 * 坐标点
 * @author hongxiao.z
 * @date   2014-3-10  下午4:59:37
 */
public abstract class GeoNode 
{
	//坐标X
	protected final int _x;
	//坐标Y
	protected final int _y;

	/**
	 * 构造方法，创建一个坐标点实体
	 * @param x
	 * @param y
	 */
	public GeoNode(int x, int y)
	{
		this._x = x;
		this._y = y;
	}
	
	/**
	 * 获取坐标X
	 * @return X值
	 * @create	hongxiao.z      2014-3-10 下午4:54:09
	 */
	public int get_x() 
	{
		return _x;
	}

	/**
	 * 获取坐标Y
	 * @return Y值
	 * @create	hongxiao.z      2014-3-10 下午4:54:31
	 */
	public int get_y() 
	{
		return _y;
	}

	@Override
	public String toString() 
	{
		return "[" + this._x + "," + this._y + "]";
	}
}
